package com.android.aishangauction.model.member;

import com.android.aishangauction.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/9/27.
 */

public abstract class MineMessageDetailDataCallback extends Callback<MineMessageDetailData> {

    @Override
    public MineMessageDetailData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("messagestring",string);
        MineMessageDetailData data = new Gson().fromJson(string,MineMessageDetailData.class);
        return data;
    }
}

